const config = require('./package.json')
const path = require('path');
function reslove(dir){
  return path.join(__dirname, dir);
}

module.exports = {
  devServer: {
    host: "0.0.0.0",
    port: 8080, // 端口号
    https: false, // https:{type:Boolean}
    open: true, //配置自动启动浏览器
  },
  configureWebpack: {
    resolve: {
      alias: {
        "@": reslove("src"),
        "@jimu": reslove("../../jimu")
      }
    }
  },
  outputDir: `dist/${config.name}`,
  // transpileDependencies:[
  //   'jimu'
  // ]
}